// models/models.go
package models

import (
	"gorm.io/gorm"
)

type Device struct {
	gorm.Model
	Name       string
	DeviceSN   string
	DeviceType string // 门禁、电源空开、云喇叭
}

type Log struct {
	gorm.Model
	DeviceID uint
	Device   Device
	Action   string
	Result   string
}
